package com.weixin.demo.controller;

import com.weixin.demo.service.LoginService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "test")
@Slf4j
public class TestController {

    @Autowired
    private LoginService loginService;

    @GetMapping(value = "test")
    public String test() throws Exception{

        log.info("test");
        String result = loginService.testLogin();

        return result;
    }
}
